package com.info.zhiduoduo.core.dto.zhaoshang;

import com.info.zhiduoduo.common.constants.company.CompanyPayType;
import com.info.zhiduoduo.common.constants.pay.ZddMerchantType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ZhaoShangQueryPayDetailedFormBean {

	private int paymentMerchant;
	/** 招商银行返回的实例号 */
	@NotEmpty
	private String partnerOrderNo;

	public static ZhaoShangQueryPayDetailedFormBean of(Integer merchantId, String partnerOrderNo) {
		return new ZhaoShangQueryPayDetailedFormBean(merchantId, partnerOrderNo);
	}

	/**
	 * 合伙人体现默认使用 招行-智圣 商户ID
	 * @param partnerOrderNo
	 * @return
	 */
	public static ZhaoShangQueryPayDetailedFormBean of(String partnerOrderNo) {
		return new ZhaoShangQueryPayDetailedFormBean(ZddMerchantType.ZHAOSHANG_ZHISHENG, partnerOrderNo);
	}
}
